﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace pandx.Mulan.Authorization.Users.Dto
{
    public class CreateOrUpdateUserInput
    {
        [Required] public UserEditDto User { get; set; }
        [Required] public string[] AssignedRoleNames { get; set; }
        public bool SendActivationEmail { get; set; }
        public bool SetRandomPassword { get; set; }
        public List<long> OrganizationUnits { get; set; }

        public CreateOrUpdateUserInput()
        {
            OrganizationUnits=new List<long>();
        }
    }
}

